<?php

namespace app\common\model;

use think\Model;

class UserGroup extends Model
{

    // 表名
    protected $name = 'user_group';
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    // 追加属性
    protected $append = [];

    //获取每个身份价格
    public static function getGroupList()
    {
        return [
            1 => 'price',
            2 => 'primary_agent',
            3 => 'intermediate_agent',
            4 => 'advanced_agent',
            5 => 'county_agent',
            6 => 'city_agent',
            7 => 'province_agent',
            8 => 'first_sensible',
            9 => 'two_sensible',
            10 => 'three_sensible',

        ];
    }
}
